'use strict';

const Controller = require('egg').Controller;

class SearchController extends Controller {
  async index() {
    const {ctx} = this;
    var {keyword} = ctx.query;
    const res = await ctx.service.movie.getMovie({keyword});
    ctx.body = {
        status:200,
        msg:'电影详情',
        res,
    }
  }
}

module.exports = SearchController;
